import datetime  # noqa: D100
from dataclasses import dataclass
from typing import Optional


@dataclass
class Account:
    """存储 GitLab 用户账户信息，支持多账户关联到工程师."""

    id: int
    git_instance: str
    username: str
    engineer_id: Optional[str] = None
    acct_fullname: Optional[str] = None
    email: Optional[str] = None
    state: Optional[str] = None
    created_at: Optional[datetime.datetime] = None
    last_activity_on: Optional[datetime.date] = None
    updated_at: Optional[datetime.datetime] = None
